<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>在线翻译</title>
    <link rel="stylesheet" href="css/style.css">
    <link rel="stylesheet" href="https://cdn.bootcss.com/font-awesome/5.8.2/css/all.min.css">
</head>
<body>

<div class="warper">
    <div class="header">
        <h1>翻译</h1>
        <p>中英互译</p>
    </div>
    <div class="main clearfix">
        <div class="main-left">
            <span class="btn1 active">中文</span>
            <span class="btn2">英文</span>
        </div>
        <div class="main-center" onclick="res1()">
            <i class="fas fa-arrows-alt-h"></i>
        </div>
        <div class="main-right clearfix">
            <span class="btn1 active">英文</span>
            <span class="btn2">中文</span>
        </div>
    </div>
    <div class="naber">
        <textarea id="old"></textarea>
        <textarea placeholder="翻译" class="text1" id="new" disabled></textarea>
    </div>

</div>
<div class="footer">
    <button onclick="zhToEn();was()">翻译</button>
</div>
<script src="js/arr.js"></script>
</body>
</html>